]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js: Remove dead code in loginDialog and workspacesView
authorEvan Welsh <contact@evanwelsh.com>
Sat, 30 Oct 2021 22:22:25 +0000 (15:22 -0700)
committerMarge Bot <marge-bot@gnome.org>
Wed, 5 Jan 2022 15:44:28 +0000 (15:44 +0000)
- this._scrolling no longer exists
- _getBannerAllocation takes a single argument

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2042>

js/gdm/loginDialog.js
js/ui/workspacesView.js

index d2a82b43d1d18593bdeab7f26c92b82e4341f4ac..760d7e9ef554d78cec91ea32e6b0017f252ba540 100644 (file)
@@ -602,7 +602,7 @@ var LoginDialog = GObject.registerClass({
         let bannerAllocation = null;
         let bannerHeight = 0;
         if (this._bannerView.visible) {
-            bannerAllocation = this._getBannerAllocation(dialogBox, this._bannerView);
+            bannerAllocation = this._getBannerAllocation(dialogBox);
             bannerHeight = bannerAllocation.y2 - bannerAllocation.y1;
         }
 
index 3761881d01038155b40bf79b070ea88b409e4785..6dad2df3f5482dd70aeed424c7e9ccf34023a3e4 100644 (file)
@@ -484,9 +484,6 @@ class WorkspacesView extends WorkspacesViewBase {
     }
 
     _activeWorkspaceChanged(_wm, _from, _to, _direction) {
-        if (this._scrolling)
-            return;
-
         this._scrollToActive();
     }